package com.bang.study.config;

import com.bang.study.bean.BeanLife;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: Bang
 * @Date: 2020/8/5 21:41
 * @Description:
 */
@Configuration
public class LifeConfig {

    @Bean(initMethod = "initAnnotation",destroyMethod = "destroyAnnotation")
    public BeanLife beanLife() {
        return new BeanLife();
    }
}
